<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <my-component  message="来自父组件的数据"></my-component>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    Vue.component('my-component',{
        props: ['message'],
        template: '<div>{{message}}</div>'
    });
    var app = new Vue({
        el: '#app'
    })
</script>

</body>
</html>